Reasoning About Exceptions?
نویسندگان
چکیده
In this paper we propose an exception logic – formalizing reasoning about exceptions. We use this logic to defend two claims. First, we argue that default logic – formalizing reasoning about default assumptions – is an extension of exception logic. A deconstruction argument shows that reasoning about exceptions is one of the first principles of reasoning about default assumptions. Second, we argue that two phases have to be distinguished in reasoning about exceptions, and therefore also in reasoning about default assumptions. We identify two causes of the distinction between two phases, the disjunction rule OR and right weakening RW. This sheds some new light on these ‘standard’ (according to the KrausLehmann-Magidor paradigm) properties of default inference.
منابع مشابه
Understanding Exceptional Behavior and Exception Flow in Implicit Invocation Systems by Mehdi Bagherzadeh, Hridesh Rajan and Ali Darvish
Exceptions and their implicit control flow complicate modular understanding (reasoning) of both exceptional behavior and exception flow of a system. Such reasoning tasks about exceptions are more complicated in implicit invocation (II) systems, where a subject module can invoke other observer modules without knowing about them and especially behavior and flow of their exceptions. In this work, ...
متن کاملCompiling and reasoning about exceptions and interrupts
Exceptions and interrupts are important for programming reliable software systems, yet our methods for reasoning about them are weak. In this thesis we explore the problem of compiling and reasoning about exceptions and interrupts in the context of a simple language. We develop the language in three stages, initially without any form of exceptions, then adding exceptions, and finally adding int...
متن کاملSound reasoning about unchecked exceptions: soundness proof
In this note we formalize a multithreaded Java-like programming language with unchecked exceptions, try-catch blocks, and synchronized blocks, as well as method contracts, object invariants, block invariants, thread-local objects, and parallel execution statements. We further formalize our verification condition generation-based modular static verification approach that verifies that the progra...
متن کاملTwo-phase Exception Logic
In this paper we propose an exception logic { formalizing reasoning about exceptions. We use this logic to defend two claims. First, we argue that default logic { formalizing reasoning about default assumptions { is an extension of exception logic. A deconstruction argument shows that reasoning about exceptions is one of the rst principles of reasoning about default assumptions. Second, we argu...
متن کامل